import {RigidBody} from '@react-three/rapier';
import {Burger} from '../burger/Burger.jsx';
import {BaseBlock} from './BaseBlock.jsx';

const BlockEnd = ({geometry, position = [0, 0, 0]}) => {

  return (
    <group position={position}>
      <BaseBlock geometry={geometry} color={0} />
      <RigidBody type={'fixed'} colliders={null} position={[0, 0.3, 0]} restitution={0} friction={0}>
        <Burger />
      </RigidBody>
    </group>
  );
};

export default BlockEnd;
